package com.tocea.formation.tpLibraryEjb.DTO;

import java.io.Serializable;

public class BookDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;
	private String genre;
	private AuthorDTO author;
	private String isbn;
	private Integer stock;
	
	public BookDTO() {
	
	}
	public BookDTO(Integer _id, String _name, String _genre, AuthorDTO _author, String _isbn, Integer _stock) {
		this.id = _id;
		this.name = _name;
		this.genre = _genre;
		this.author = _author;
		this.isbn = _isbn;
		this.stock = _stock;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public AuthorDTO getAuthor() {
		return author;
	}

	public void setAuthor(AuthorDTO author) {
		this.author = author;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

}
